package com.gnerv.sylvanas.business.manage.repository.mapper;

import com.gnerv.sylvanas.business.manage.model.dto.RouteDTO;
import com.gnerv.sylvanas.business.manage.model.dto.RouteTreeDTO;
import com.gnerv.sylvanas.business.manage.model.entity.Route;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ligen
*/
@Mapper
public interface RouteMapper {

    int insert(@Param(value = "route") Route route);

    int deleteByUkId(@Param(value = "ukId") String ukId);

    int updateByUkId(@Param(value = "route") Route route);

    RouteDTO selectByUkId(@Param(value = "ukId") String ukId);

    List<RouteDTO> selectListByName(@Param(value = "name") String name);

    List<RouteDTO> selectListByParentUkId(@Param(value = "parentUkId") String parentUkId);

    List<RouteTreeDTO> selectListTreeByParentUkId(@Param(value = "parentUkId") String parentUkId);

    String selectFullPathByViewUkId(@Param(value = "viewUkId") String viewUkId);
}
